import 'package:love_app/common/su_dio.dart';
import 'package:love_app/config/path_url.dart';
import 'package:love_app/model/response_model.dart';
import 'package:love_app/model/we_info_model.dart';
import 'package:love_app/service/base_api.dart';

// 获取我们信息接口
class WeInfoApi extends BaseApi{
  Future<WeInfoModel> getWeInfo(String token)async{
    String path = PathUrl.weInfo;
    ResponseModel responseModel = await SuDio().getRequest(path, headersMap: headerToken(token));
    return WeInfoModel.fromJson(responseModel.toJsonModel);
  }
}